package moxl.relaxng.schema.patterns;

import moxl.relaxng.schema.NameClass;
import moxl.relaxng.schema.Pattern;

public class ElementPattern implements Pattern
{
	private final NameClass nameClass;
	private final Pattern pattern;

	public ElementPattern(NameClass nameClass, Pattern pattern)
	{
		this.nameClass = nameClass;
		this.pattern = pattern;
	}

	public boolean nullable()
	{
		throw new UnsupportedOperationException("TODO");
	}

	public NameClass getNameClass()
	{
		return nameClass;
	}

	public Pattern getPattern()
    {
	    return pattern;
    }

}
